﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UCProductsHistory.ascx.cs" Inherits="UserControls_UCProductsHistory" %>
<!--最近浏览-->
<h1 class="title margin10_tb">
    <span><asp:Localize ID="Localize1" Text='<%$ Resources: ResourceGlobal, Title_History  %>' runat="server"></asp:Localize></span>
</h1>
<div class="history block clearfix">
    <asp:Repeater ID="rptProducts" runat="server">
        <ItemTemplate>
            <div class="product">
                <div class="pic"><i></i>
                    <a href='<%#ResolveUrl("~/Products/"+Eval("ProductID").ToString()) %>'>
                        <img src='<%#ResolveUrl(Eval("Image174").ToString()) %>'
                            border="0" /></a><span class="status"><img src='<%#GetProductStatus(Convert.ToInt32(Eval("Status"))) %>' /></span></div>
                <div class="info">
                    <p><a href='<%#ResolveUrl("~/Products/"+Eval("ProductID").ToString()) %>'><%#HttpUtility.HtmlEncode(Eval("ProductName").ToString())%></a></p>
                    <%if (System.Globalization.CultureInfo.CurrentCulture.Name.ToLower() == "zh-cn")
                        { %>
                        <p><span style='<%#Convert.ToInt32(Eval("SalePrice"))!=0?"text-decoration: line-through;":string.Empty%>'><%#(Convert.ToInt32(Eval("UnitPrice")) != 0) ? string.Format("{0:C}", Eval("UnitPrice")) : Resources.ResourceGlobal.Product_Ask%></span><span class="saleprice"><%#Convert.ToInt32(Eval("SalePrice"))!=0?string.Format("{0:C}",Eval("SalePrice")):string.Empty%></span></p>
                    <%}
                        else if (System.Globalization.CultureInfo.CurrentCulture.Name.ToLower() == "en-us")
                        {%>
                        <p><span style='<%#Convert.ToInt32(Eval("SalePriceUS"))!=0?"text-decoration: line-through;":string.Empty%>'><%#(Convert.ToInt32(Eval("UnitPriceUS")) != 0) ? string.Format("{0:C}", Eval("UnitPriceUS")) : Resources.ResourceGlobal.Product_Ask%></span><span class="saleprice"><%#Convert.ToInt32(Eval("SalePriceUS"))!=0?string.Format("{0:C}",Eval("SalePriceUS")):string.Empty%></span></p>
                    <%}
                        else if (System.Globalization.CultureInfo.CurrentCulture.Name.ToLower() == "ja-jp")
                        {%>
                        <p><span style='<%#Convert.ToInt32(Eval("SalePriceJP"))!=0?"text-decoration: line-through;":string.Empty%>'><%#(Convert.ToInt32(Eval("UnitPriceJP")) != 0) ? string.Format("{0:C}", Eval("UnitPriceJP")) : Resources.ResourceGlobal.Product_Ask%></span><span class="saleprice"><%#Convert.ToInt32(Eval("SalePriceJP"))!=0?string.Format("{0:C}",Eval("SalePriceJP")):string.Empty%></span></p>
                    <%} %>
                </div>
            </div>
        </ItemTemplate>
    </asp:Repeater>
</div>
<script type="text/javascript">
    $(function () {
        //ellipsis
        $.utility.ellipsis({ selector: ".product .info p a", length: 30 });
    });
</script>